package bid.yanhj.ssm.vo;

/**
 * 
 * @author yanhaijiang
 *
 */
public class PageVo {
    private int pageNum;
    private int pageSize;
    private int startRow;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStartRow() {
        return this.pageNum > 0 ? (this.pageNum - 1) * this.pageSize : 0;
    }

    public int getEndRow() {
        return this.startRow + this.pageSize * (this.pageNum > 0 ? 1 : 0);
    }
}
